package com.dv.driverless.domain;

import java.util.Date;

import com.dv.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dv.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 安全围栏对象 equipment_fence
 *
 * @author ruoyi
 * @date 2023-04-06
 */
public class EquipmentFence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String fenceCode;

    /** 名称 */
    @Excel(name = "名称")
    private String fenceName;

    /** 库区ID */
    @Excel(name = "库区ID")
    private Long areaId;

    /** 状态[0正常 1停用] */
    @Excel(name = "状态[0正常 1停用]")
    private String status;

    /** 删除标志[0代表存在 1代表删除] */
    private String delFlag;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFenceCode(String fenceCode)
    {
        this.fenceCode = fenceCode;
    }

    public String getFenceCode()
    {
        return fenceCode;
    }
    public void setFenceName(String fenceName)
    {
        this.fenceName = fenceName;
    }

    public String getFenceName()
    {
        return fenceName;
    }
    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId()
    {
        return areaId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fenceCode", getFenceCode())
            .append("fenceName", getFenceName())
            .append("areaId", getAreaId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("remark", getRemark())
            .toString();
    }
}
